package co.com.smart.persistence.entity;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import co.com.smart.persistence.entity.dto.SmartSede;
import co.com.smart.persistence.entity.util.AbstractFacade;

/**
 * Session Bean implementation class SedeFacade
 */
@Stateless(name = "SedeFacade",
		   mappedName = "ejb/SedeFacade")
public class SedeFacade extends AbstractFacade<SmartSede> implements SedeFacadeLocal {

		@PersistenceContext(unitName = "SnakeServicesPU")
		private EntityManager em;
	    /**
	     * Default constructor. 
	     */
	    public SedeFacade() {
	       super(SmartSede.class);
	    }

	    @Override
	    protected EntityManager getEntityManager() {
	    	return em;
	    }
}
